package com.study.subscription;

/**
 * 订阅服务
 * 
 * @author donghuating
 *
 */
public class Subscription implements ISubscription {

    private String name;

    public Subscription(String name) {
        this.name = name;
    }

    public void update(String msg) {
        System.out.println(name + "接收到更新消息" + msg);

    }

}
